This guide provides a detailed walkthrough on setting up and deploying a Web3 Game Item contract in Builder. It discusses the differences between ERC721 and ERC1155 contracts, walks through the steps of deploying a contract.
ERC721
: Azuki
In contrast, ERC1155 offers versatility with efficient batch operations for both fungible and non-fungible tokens in a single contract, where typically you would be dealing with a multiplicity of a many items to many quanties relationship. However, this flexibility introduces complexity, necessitating careful security attention.
Example ERC1155
: Skyweaver
project
in the top left and corner for what you want to create the collectible for, and head to the contracts
section and select + Deploy new contract
ERC1155
vs ERC721
is that you
add a symbol
to an ERC721 NFT CollectionContract Name
and Owner
for your contract, with the option to input Royalties. Make sure the Owner address is the Sequence Wallet in the top-right hand corner and that you have funds in this wallet on mainnet, otherwise on testnet - we sponsor these transactions for you.
name
later in the builder interface where it will update across the sequence stack, popular explorers do not reindex the information, so what you put first remainsconfirm
mint()
.
First start by selecting your contract you just deployed in the contracts
section
Write Contract
section
grantRole
section of the write contract tab navigation
bytes32 role
: 0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6
address account
: <Wallet Address>
Where the wallet address is the address that you would like to give permissions to mint to, specifically any Sequence wallet.
write
and signing the transaction in the popup window, like before
With a confirmation message showing Response Success
solidityPackedKeccak256("MINTER_ROLE")
in
solidity or ethers.solidityPackedKeccak256(ethers.toUtf8Bytes("MINTER_ROLE"))
in javascriptmint
card in the Write Contract
section and input the to
being the wallet address you would like to receive the token to, the tokenId
(typically starting at 0), and amount
of tokens, and finally the data
section you can just input 0x00
, which typically represent Additional data with no specified format.
Transactions
tab navigation